package com.pkk.penguin.frame.know.shiro.shirodemo.util.enums;

import com.pkk.components.rpc.enums.CodeEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @description:
 * @author: peikunkun
 * @create: 2018-08-22 10:44
 **/

@Getter
@AllArgsConstructor
public enum ShiroCode implements CodeEnum<String, String> {

  /**
   * 状态码
   */
  SYS_EXCEPTION("500", "系统出现异常"),
  SUCCESS("0000", "业务处理成功"),
  FAIL("-9999", "业务处理失败"),
  LOGIN_SUCCESS("10000", "登录成功"),
  LOGIN_FAIL("-10000", "登录失败"),
  PWD_ERROR("-10001", "密码错误");

  public String code;
  public String msg;
}
